package com.language.points.proxy;

import net.sf.cglib.proxy.MethodProxy;

import java.lang.reflect.Method;
/**
 * 代理示例 - 静态代理实现类
 * @author yll
 * @version 1.0.0
 * @date 2024/04/25 14：55
 * */
public class CglibProxyImpl extends CglibProxy {
    public CglibProxyImpl(Object tarObj){
        super(tarObj);
    }

    public void invokeAfter(Object tarObj, Object proxy, Method method, Object[] objects, MethodProxy methodProxy) {
        System.out.println("CglibProxyImpl->invokeAfter()");
    }

    public void invokeBefer(Object tarObj, Object proxy, Method method, Object[] objects, MethodProxy methodProxy) {
        System.out.println("CglibProxyImpl->invokeBefer()");
    }
}
